package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 轮播广告
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-01
 */
@TableName("biz_carousel_advertisement")
public class CarouselAdvertisement extends Model<CarouselAdvertisement> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 上传图片
     */
    private String imgUrl;
    /**
     * 宽度
     */
    private Double imgWidth;
    /**
     * 高度
     */
    private Double imgHeight;
    /**
     * 上传时间
     */
    private Date createTime;
    /**
     * 描述
     */
    private String describe;
    /**
     * 大小
     */
    private Integer size;
    /**
     * 是否灰掉
     */
    private String isgray;
    /**
     * 添加x=200&y=100到URL将从位置裁剪图像
     */
    @TableField("position_x")
    private Integer positionX;
    /**
     * 添加x=200&y=100到URL将从位置裁剪图像
     */
    @TableField("position_y")
    private Integer positionY;
    /**
     * 获取旋转的图像 (添加r=45到URL)
     */
    private Integer rotate;
    /**
     * 图片质量
     */
    private Integer quality;
    /**
     * 图片类型
     */
    private String imgFormat;
    /**
     * 区分是轮播图或者基础图片
     */
    private Integer type;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Double getImgWidth() {
        return imgWidth;
    }

    public void setImgWidth(Double imgWidth) {
        this.imgWidth = imgWidth;
    }

    public Double getImgHeight() {
        return imgHeight;
    }

    public void setImgHeight(Double imgHeight) {
        this.imgHeight = imgHeight;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getIsgray() {
        return isgray;
    }

    public void setIsgray(String isgray) {
        this.isgray = isgray;
    }

    public Integer getPositionX() {
        return positionX;
    }

    public void setPositionX(Integer positionX) {
        this.positionX = positionX;
    }

    public Integer getPositionY() {
        return positionY;
    }

    public void setPositionY(Integer positionY) {
        this.positionY = positionY;
    }

    public Integer getRotate() {
        return rotate;
    }

    public void setRotate(Integer rotate) {
        this.rotate = rotate;
    }

    public Integer getQuality() {
        return quality;
    }

    public void setQuality(Integer quality) {
        this.quality = quality;
    }

    public String getImgFormat() {
        return imgFormat;
    }

    public void setImgFormat(String imgFormat) {
        this.imgFormat = imgFormat;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CarouselAdvertisement{" +
        "id=" + id +
        ", imgUrl=" + imgUrl +
        ", imgWidth=" + imgWidth +
        ", imgHeight=" + imgHeight +
        ", createTime=" + createTime +
        ", describe=" + describe +
        ", size=" + size +
        ", isgray=" + isgray +
        ", positionX=" + positionX +
        ", positionY=" + positionY +
        ", rotate=" + rotate +
        ", quality=" + quality +
        ", imgFormat=" + imgFormat +
        ", type=" + type +
        "}";
    }
}
